import org.newdawn.slick.*;
import org.newdawn.slick.state.*;

public class Game extends StateBasedGame {
	
	private static final String title = "Title"; 
	private static final int menu = 0;
	private static final int play = 1;
	
	public Game(String title) {
		super(title);
		
		Menu menuState = new Menu (menu);
		this.addState(menuState);
		Play playState = new Play (play);
		this.addState(playState);   
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		 AppGameContainer appgc;
	      try{
	         appgc = new AppGameContainer(new Game(title));
	         appgc.setDisplayMode(800, 500, false);
	         appgc.start();
	      }catch(SlickException e){
	         e.printStackTrace();
	      }

	}

	@Override
	public void initStatesList(GameContainer gc) throws SlickException {
		 this.getState(menu).init(gc, this);
	     this.getState(play).init(gc, this);
	     this.enterState(menu);
	}

}
